public class D3 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.age = 1;
        dog.size = 2;
        dog.color = "Block";
        dog.breed = "NONE";
        System.out.println(dog);
        System.out.println("===================================");
        Dog moredog = new Dog("duck duck go", 0, "kill me", 0);
        System.out.println(moredog);
        System.out.println("===================================");

        Dog nameddog = new Dog("sucks");
        System.out.println(nameddog);
    }
}

class Dog {
    public Dog() {
        System.out.println("the default ctor ");
    }
    public Dog(String breed, int size, String color, int age) {
        this.breed = breed;
        this.size = size;
        this.color = color;
        this.age = age;
    }
    public Dog(String name) {
        System.out.println("Dog name is " + name);
    }
    
    String breed;
    int size;
    String color;
    int age;

    void eat() {
        System.out.println("Eat the " + this.breed);
    }
    void run() {
        System.out.println(
            "Run the " + this.size
        );
    }
    void sleep() {
        System.out.println("Sleep the " + this.color);
    }
    void name() {
        System.out.println("Name the " + this.age);
    }
    @Override
    public String toString() {
        eat();
        run();
        sleep();
        name();
        return this.breed + " " + this.color + " " + (this.age) + 
        " " + (this.size);
    }
}